[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function Compaq386KbdType - keyboard type used by a
Compaq 386
Syntax unsigned char Compaq386KbdType(void);
Prototype in ibm.h
Remarks determines the type of keyboard in use by a Compaq
386 computer.
Return value returns 0 if the keyboard in use is an 11-bit AT
type keyboard and 1 if the keyboard is a 9-bit PC
type keyboard.
Note This function should ONLY be used on Compaq 386
computers or unpredictable results may occur.
See also Compaq386GetCpuSpeed(), Compaq386SetCpuSpeed()
Example #include <ibm.h>
main()
{
printf("Keyboard in use: );
switch (Compaq386KbdType()) {
case 0: printf("11-bit AT style\n");
case 1: printf("9-bit PC style\n");
default: printf("unknown\n");
}
}
See Also:
Compaq386GetCpuSpeed()
Compaq386SetCpuSpeed()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson